<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('adminCate/index')}">新闻分类列表</a></li>
        <li><a href="{:url('adminCate/edit')}">新闻分类编辑</a></li>
    </ul>
    <div class="row margin-top-20">
        <div class="col-md-6">
            <form class="js-ajax-form" action="{:url('adminCate/editPost')}" method="post">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">

                        <div class="form-group">
                            <label for="input-title"><span class="form-required">*</span>分类名称</label>
                            <div>
                                <input type="text" class="form-control" id="input-title" name="name" value="<notempty name='category'>{$category.name}</notempty>">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-sort"><span class="form-required">*</span>排序</label>
                            <div>
                                <input type="text" class="form-control" id="input-sort" name="sort" value="<notempty name='category'>{$category.sort}</notempty>">
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="input-status"><span class="form-required">*</span>分类状态</label>
                            <div>
                                <select class="form-control" name="isopen" id="input-status">
                                    <option value="1">开启</option>
                                    <option value="2">关闭</option>
                                    <option value="3">删除</option>
                                </select>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="form-group">
                    <input type="hidden" name="id" value="<notempty name='category'>{$category.id}</notempty>">
                    <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0">{:lang('SAVE')}
                    </button>
                    <a class="btn btn-default" href="{:url('adminCate/index')}">{:lang('BACK')}</a>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>